<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateDynamicTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('dynamic', function (Blueprint $table) {
            $table->increments('id');
            $table->string('dynamic_nick')->default('')->comment('动态名称');
            $table->string('dynamic_img')->default('')->comment('动态图片');
            $table->string('dynamic_text')->default('')->comment('动态内容');
            $table->integer('hospital_id')->comment('分院id');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('dynamic');
    }
}
